package com.pinyoumei.app.adapter;

import android.support.annotation.Nullable;

import com.pinyoumei.app.R;
import com.pinyoumei.app.bean.ToBaoBean;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * Created by Administrator on 2020-12-14.
 * --------- 日期 ------- 维护人 ------------ 变更内容 --------
 * 2020-12-14        Administrator             新增Person类
 * 2020-12-14        Administrator             增加sex属性
 */
public class ShopRulesAdapter extends BaseQuickAdapter<ToBaoBean.ResultBean.RoleListBean, BaseViewHolder> {
    public ShopRulesAdapter(int layoutResId, @Nullable List<ToBaoBean.ResultBean.RoleListBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, ToBaoBean.ResultBean.RoleListBean item) {
            helper.setText(R.id.tv_vip,item.getLevel_name()+"");
            helper.setText(R.id.tv_vip_title,"下单成功确认收货并未产生退款，可获得对应产品返佣金额的"
                    + item.getShopping_given_percent()+"%收益。");
    }
}
